home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / March 96 / Re Clipping embedded frames < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.1 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Clipping embedded frames
  2. Sent:        3/8/96 9:35 AM
  3. Received:    3/8/96 9:55 AM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >Our part supports embedding of other parts.  However when our part's draw
  9. >method is called, the embedded frame is not clipped from our facet.  Is it
  10. >our parts responsibility to clip the embedded part out of our facet each
  11. >time the draw method is called? If not what is the correct way to manage
  12. >this?
  13. >
  14. >Regards,
  15. >Karl Jepsen
  16.  
  17. Yes, your part has to maintain its embedded frames (facets in fact) clip 
  18. shape. ODF provides a help class called FW_CFacetClipper. The default 
  19. implementation works fine if your content is only composed of embedded 
  20. frames (no intrinsic content) like ODFEmbed of ODFTable. If you have 
  21. content other than embedded frames (like ODFDraw) you need to subclass 
  22. FW_CFacetClipper because ODF doesn't know anything about your content. 
  23. The best way to understand how it works is to look at ODFDraw, ODFEmbed 
  24. and ODFTable.
  25.  
  26. Henri Lamiraux 
  27. ODF Team
  28.